/*
 * @(#)AbstractComponentClass.java   09/10/15
 * 
 * Copyright (C) 2009 Ecole des Mines d'Ales
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 * Contact: yulinz88@gmail.com
 */



package fr.ema.arch3d.model.architecture.configuration;

import fr.ema.arch3d.model.architecture.specification.AbstractComponentRole;

//~--- classes ----------------------------------------------------------------

/**
 * Class description
 *
 *
 * @version 1.0, 09/09/16
 * @author Huaxi (Yulin) ZHANG
 */
public abstract class AbstractComponentClass implements ComponentClass {

//    /** Field description */
//    private AbstractComponentRole cmpRole;

    /** Field description */
    private AbstractComponentType cmpType;

    /** Field description */
    private String implementation;

    /** the name of this component class */
    private String name;

    /**
     * Constructs...
     *
     * @param name  the name assigned to this component class
     * @param cmpType  the component type of this component class
     * @param implementation  the implementation class that this component class
     *            implements
     */
    public AbstractComponentClass(String name, AbstractComponentType cmpType, String implementation) {
        this.name           = name;
        this.cmpType        = cmpType;
        this.implementation = implementation;
    }

//    /**
//     * Getter of the property <tt>cmpRole</tt>
//     *
//     * @return  the cmpRole
//     */
//    public AbstractComponentRole getCmpRole() {
//        return this.cmpRole;
//    }
//
//    /**
//     * Setter of the property <tt>cmpRole</tt>
//     *
//     * @param cmpRole  the cmpRole to set
//     */
//    public void setCmpRole(AbstractComponentRole cmpRole) {
//        this.cmpRole = cmpRole;
//    }

    /**
     * Getter of the property <tt>name</tt>
     *
     * @return Returns the name.
     *
     */
    public String getName() {
        return this.name;
    }

    /**
     * Setter of the property <tt>name</tt>
     *
     * @param name  the name to set.
     *
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * Getter of the property <tt>implementation</tt>
     *
     * @return Returns the implementation.
     *
     */
    public String getImplementation() {
        return this.implementation;
    }

    /**
     * Setter of the property <tt>implementation</tt>
     *
     * @param implementation the implementation to set.
     *
     */
    public void setImplementation(String implementation) {
        this.implementation = implementation;
    }

    /**
     * Getter of the property <tt>cmpType</tt>
     *
     * @return Returns the cmpType.
     *
     */
    /* (non-Javadoc)
     * @see fr.ema.arch3d.model.architecture.configuration.ComponentClass#getCmpType()
     */
    public AbstractComponentType getCmpType() {
        return cmpType;
    }

    /**
     * Setter of the property <tt>cmpType</tt>
     *
     * @param cmpType  the cmpType to set.
     *
     */
    public void setCmpType(AbstractComponentType cmpType) {
        this.cmpType = cmpType;
    }
}
